﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="EditContent.ascx.cs"
    Inherits="NCS.Module.CMS.Admin.Author.EditContent" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
    <%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<%@ Register Assembly="NCS.FilePickerControl" Namespace="NCS.FilePicker" TagPrefix="cc2" %>
<%@ Register Src="../UserControls/Editor.ascx" TagName="Editor" TagPrefix="uc2" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>

        <asp:Label ID="lblUpdateStatus" runat="server" ForeColor="Blue"></asp:Label>
        <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
            <tr>
                <td class="InputBox" valign="top">
                    <table cellspacing="0" cellpadding="3" width="100%" align="center">
                        <tr>
                            <td>
                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="List"></asp:ValidationSummary>
                                <asp:Label ID="lblStatusUpdate" runat="server" ForeColor="Red"></asp:Label></td>
                        </tr>
                        <tr>
                            <td>
                                <table cellspacing="0" cellpadding="4" width="100%" align="center" border="0" id="TABLE2">
                                    <tr>
                                        <td colspan="2">
                                            <strong>Loại bài :</strong>
                                            <asp:RadioButtonList ID="rdoContentRanks" runat="server" RepeatDirection="Horizontal"
                                                RepeatLayout="Flow">
                                                <asp:ListItem Value="1" Selected="True">B&#236;nh thường</asp:ListItem>
                                                <%--<asp:ListItem Value="2">Ti&#234;u điểm</asp:ListItem>--%>
                                                <asp:ListItem Value="3">Nổi bật</asp:ListItem>
                                            </asp:RadioButtonList><asp:CheckBox ID="chkHotNews" runat="server" Text="Tin chạy ngang" />
                                            <asp:CheckBox ID="chkLevel2" runat="server" Text="Bên phải trang cấp 2" Visible="false" /></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="height: 5px;">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table id="Table1" cellspacing="0" cellpadding="0" border="0">
                                                <tr>
                                                    <td style="height: 24px">
                                                        <strong>Ngày đăng bài lên:</strong>
                                                    </td>
                                                    <td style="height: 24px">
                                                        <asp:TextBox ID="txtDatetime" Width="170px" runat="server"></asp:TextBox></td>
                                                    <td style="height: 24px">
                                                        <!--Giờ đăng:&nbsp;-->
                                                        <asp:TextBox ID="txtHour" Width="60px" runat="server" Visible="False"></asp:TextBox></td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="210">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="height: 5px;">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <strong>Ngày gỡ xuống: Ngày
                                                <asp:DropDownList ID="dropExpireDay" runat="server" Width="64px">
                                                </asp:DropDownList>
                                                Tháng
                                                <asp:DropDownList ID="dropExpireMonth" runat="server" Width="64px">
                                                </asp:DropDownList>
                                                Năm
                                                <asp:DropDownList ID="dropExpireYear" runat="server" Width="64px">
                                                </asp:DropDownList></strong></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="height: 5px;">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height: 28px">
                                            <div style="display: block;">
                                                <strong>Cho phép góp ý:</strong>
                                                <asp:CheckBox ID="chkIsComment" runat="server"></asp:CheckBox>&nbsp;&nbsp;&nbsp;&nbsp;
                                            </div>
                                            <strong>Chuyên đề liên quan:</strong>&nbsp;
                                            <asp:DropDownList ID="dropEvent" runat="server" Width="250" DataValueField="Event_ID"
                                                DataTextField="Event_Name">
                                            </asp:DropDownList>
                                        </td>
                                        <td width="210" style="height: 28px">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height: 28px">
                                        </td>
                                        <td style="height: 28px" width="210">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <strong>Mục lưu tin :</strong></td>
                                        <td width="210">
                                            <strong>Đăng vào mục</strong></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:DropDownList ID="dropZones" runat="server" Width="504px">
                                            </asp:DropDownList>
                                            <asp:RegularExpressionValidator ID="regualarExperssionValidator1" runat="server"
                                                ControlToValidate="dropZones" Display="Dynamic" ErrorMessage="Bạn cần chọn mục lưu tin khác root"
                                                ValidationExpression="\d{3,10}">(*)</asp:RegularExpressionValidator>
                                            <td valign="top" rowspan="10">
                                                <asp:ListBox ID="lstZones" runat="server" Width="250px" BorderColor="#cccc33" Height="420px"
                                                    SelectionMode="Multiple"></asp:ListBox></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <strong>Tiêu đề</strong></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="txtHeadline" runat="server" Width="504px" Height="72px" TextMode="MultiLine"></asp:TextBox><asp:RequiredFieldValidator
                                                ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtHeadline" ErrorMessage="Chưa nhập tiêu đề"
                                                Display="Dynamic">(*)</asp:RequiredFieldValidator></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <strong>Tiêu đề phụ</strong></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="txtSubTitle" runat="server" Width="504px" Height="50px" TextMode="multiline"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <strong>Tóm tắt</strong></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;<asp:TextBox ID="txt_teaser" runat="server" Height="150px" TextMode="MultiLine"
                                                Width="100%"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td style="height: 15px">
                                        </td>
                                    </tr>
                                    <tr style="display:none;">
                                        <td>
                                            <strong>Avartar cho bài nổi bật trang chủ các kênh</strong></td>
                                    </tr>
                                    <tr style="display:none;">
                                        <td>
                                            <cc2:FilePicker ID="txtSpecialAvatar" runat="server" MaxLength="250" onkeypress="return false;" Width="248px" fpPopupURL="/FilePicker/TUFilePicker.aspx"></cc2:FilePicker>
                                            &nbsp;&nbsp;&nbsp;rộng
                                            <asp:TextBox ID="txtSpecialAvatarwidth" runat="server" Width="65px"></asp:TextBox>&nbsp;cao
                                            <asp:TextBox ID="txtSpecialAvatarHeight" runat="server" Width="65"></asp:TextBox>&nbsp;(px)
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <strong>Avartar</strong></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <%--<cc2:FilePicker ID="txtAvatar" runat="server" Width="248px" fpPopupURL="/FilePicker/TUFilePicker.aspx"></cc2:FilePicker>--%>
                                            <cc2:NewsImagePicker ID="txtAvatar" onkeypress="return false;" MaxLength="250" runat="server" Width="248px"></cc2:NewsImagePicker>
                                            &nbsp;&nbsp;&nbsp;rộng
                                            <asp:TextBox ID="txtAvatar2width" runat="server" Width="65px">173</asp:TextBox>&nbsp;cao
                                            <asp:TextBox ID="txtAvatar2Height" runat="server" Width="65">173</asp:TextBox>&nbsp;
                                            (px)
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <strong>Mô tả ảnh</strong></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="txtAvatarDes" runat="server" Width="504px" TextMode="MultiLine"
                                                Rows="3"></asp:TextBox></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr style="display:none;">
                            <td>
                                <ul style="list-style: inline;">
                                    <li style="float: left;"><strong>Bút danh: </strong>
                                        <asp:TextBox ID="lbAlias" Width="200px" runat="server"></asp:TextBox>
                                    </li>
                                    <li style="float: left;"><strong>Lấy từ: </strong>
                                        <asp:TextBox ID="txtSource" runat="server" Width="200px" TextMode="SingleLine"></asp:TextBox>
                                    </li>
                                    <li style="float: left; display: none;"><strong>Đối tác:</strong><asp:DropDownList
                                        ID="dropPartner" runat="server" Width="200px" DataValueField="PartnerID" DataTextField="PartnerName">
                                    </asp:DropDownList>
                                    </li>
                                </ul>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>Nội dung chính</strong></td>
                        </tr>
                        <tr>
                            <td>
                                <CKEditor:CKEditorControl ID="txtContent" runat="server"></CKEditor:CKEditorControl>
                            </td>
                        </tr>
                        <tr style="display: none;">
                            <td>
                                <br />
                                <strong>Box chú giải</strong></td>
                        </tr>
                        <tr style="display: none;">
                            <td>
                                <asp:TextBox ID="txtNoteBox" runat="server" Width="504px" TextMode="multiline" Rows="3"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="display: none;">
                            <td>
                                <br />
                                <asp:CheckBox ID="chkAlbum" runat="server" Text="Tạo Album cho bài viết này" /></td>
                        </tr>
                        <tr>
                            <td>
                                <p align="center">
                                    <asp:Button ID="btnCheckIn" AccessKey="c" runat="server" Width="107px" ToolTip="Alt + C"
                                        Text="Cập nhật" OnClick="btnCheckIn_Click"></asp:Button>
                                    <asp:Button ID="btnUndoCheckOut"
                                            AccessKey="u" runat="server" ToolTip="Alt + U" Text="Bỏ giữ quyền cập nhật"
                                            OnClick="btnUndoCheckOut_Click"></asp:Button>
                                    <asp:Button ID="btnCreateNewVersion" runat="server" OnClick="btnCreateNewVersion_Click"
                                        Text="Tạo version mới" Width="103px" />
                                    <asp:Button ID="btnCancel" AccessKey="e" runat="server" Width="110px" ToolTip="Alt + E"
                                        Text="Hủy" CausesValidation="False" OnClick="cmdHuy_Click"></asp:Button>&nbsp;</p>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
